const cloud = require('@alipay/faas-server-sdk');
exports.main = async (event, context) => {
  const db = cloud.database();
  // 根据商品id查商品详情
  const product = await db.collection("mall_product").doc(event.productId).get();
  console.log('product:', product);
  return product
};